<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>
export default {
  provide () {
    return {
      app: this
    }
  },
  data () {
    return {
      userinfo: null
    }
  },
  mounted () {
    this.getUserInfo()
  },
  methods: {
    getUserInfo (type) {
      if (type === 1) {
        this.userinfo = { name: 'zwh', phone: '1501138581x' }
      } else {
        this.userinfo = { name: 'zrt', phone: '13843838438' }
      }
    }
  }
}
</script>

<style>
*{
  box-sizing: border-box;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
</style>
